﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>while</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>
<P class=MsoNormal 
style="BACKGROUND: #f5f5ff; MARGIN: 0in 0in 10pt; LINE-HEIGHT: 12.65pt; mso-margin-bottom-alt: auto"><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'"></SPAN></P><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Consolas; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'"><SPAN class=editsection><B><I><SPAN 
style="COLOR: yellow; FONT-FAMILY: 'Times New Roman'"><FONT 
color=#000000><FONT size=3><SPAN 
style="FONT-SIZE: 10.5pt; COLOR: black; FONT-FAMILY: 'Helvetica','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 18.0pt">The</SPAN>
<SPAN>&nbsp;while
</SPAN>
<SPAN 
style="FONT-SIZE: 10.5pt; COLOR: black; FONT-FAMILY: 'Helvetica','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 18.0pt">&nbsp;

</SPAN>
<SPAN 
style="FONT-SIZE: 10.5pt; COLOR: black; FONT-FAMILY: 'Helvetica','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-font-kerning: 18.0pt">Loop: 
<o:p ></O:P></SPAN></FONT></FONT> 
<P></P>
<P class=MsoNormal style="BACKGROUND: #f5f5ff; MARGIN: 0in 0in 10pt; LINE-HEIGHT: 12.65pt; mso-margin-bottom-alt: auto">

<TABLE class=MsoNormalTable 
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f1f1f1; BORDER-LEFT: medium none; WIDTH: 317.95pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid #AAAAAA .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 3.75pt 3.75pt 3.75pt 2.9pt" 
cellSpacing=0 cellPadding=0 width=424 border=1><TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes" 
 > 
 <TD 
    style="BORDER-RIGHT: #aaaaaa 1pt solid; PADDING-RIGHT: 3.75pt; BORDER-TOP: #aaaaaa 1pt solid; PADDING-LEFT: 2.9pt; PADDING-BOTTOM: 3.75pt; BORDER-LEFT: #aaaaaa 1pt solid; PADDING-TOP: 3.75pt; BORDER-BOTTOM: #aaaaaa 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid #AAAAAA .5pt" 
    vAlign=top>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>while 
      expression:<o:p></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; 
      </SPAN>statement(s)<o:p 
  ></O:P></FONT></SPAN></P>             </TD> </TR></TABLE></P>
<P class=MsoNormal 
style="BACKGROUND: white; MARGIN: 5.75pt 0in; LINE-HEIGHT: normal; mso-outline-level: 2"><B><SPAN 
style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 'Helvetica','sans-serif'; mso-fareast-font-family: 'Times New Roman'"><FONT size=3>Example:<o:p></O:P></FONT></SPAN></B></P>
<P class=MsoNormal 
style="BACKGROUND: #f5f5ff; MARGIN: 0in 0in 10pt; LINE-HEIGHT: 12.65pt; mso-margin-bottom-alt: auto">
<TABLE class=MsoNormalTable 
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f1f1f1; BORDER-LEFT: medium none; WIDTH: 317.95pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid #AAAAAA .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 3.75pt 3.75pt 3.75pt 2.9pt" 
cellSpacing=0 cellPadding=0 width=424 border=1>
  
  <TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes" 
  >
    <TD 
    style="BORDER-RIGHT: #aaaaaa 1pt solid; PADDING-RIGHT: 3.75pt; BORDER-TOP: #aaaaaa 1pt solid; PADDING-LEFT: 2.9pt; PADDING-BOTTOM: 3.75pt; BORDER-LEFT: #aaaaaa 1pt solid; PADDING-TOP: 3.75pt; BORDER-BOTTOM: #aaaaaa 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid #AAAAAA .5pt" 
    vAlign=top>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3 
      >#!/usr/bin/python<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><o:p></O:P></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>count = 0<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>while (count &lt; 
      9):<o:p></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>print 
      'The count is:', count<o:p></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3><SPAN 
      style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>count = 
      count + 1<o:p></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><o:p></O:P></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>print "Good 
      bye!"<o:p></O:P></FONT></SPAN></P></TD></TR></TABLE></P>
<P class=MsoNormal 
style="BACKGROUND: white; MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto"><SPAN 
style="FONT-SIZE: 6.5pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"><FONT size=3>This will produce 
following result:<o:p></O:P></FONT></SPAN></P>
<P class=MsoNormal 
style="BACKGROUND: #f5f5ff; MARGIN: 0in 0in 10pt; LINE-HEIGHT: 12.65pt; mso-margin-bottom-alt: auto">
<TABLE class=MsoNormalTable 
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #f1f1f1; BORDER-LEFT: medium none; WIDTH: 317.95pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid #AAAAAA .5pt; mso-yfti-tbllook: 1184; mso-padding-alt: 3.75pt 3.75pt 3.75pt 2.9pt" 
cellSpacing=0 cellPadding=0 width=424 border=1>
  
  <TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes" 
  >
    <TD 
    style="BORDER-RIGHT: #aaaaaa 1pt solid; PADDING-RIGHT: 3.75pt; BORDER-TOP: #aaaaaa 1pt solid; PADDING-LEFT: 2.9pt; PADDING-BOTTOM: 3.75pt; BORDER-LEFT: #aaaaaa 1pt solid; PADDING-TOP: 3.75pt; BORDER-BOTTOM: #aaaaaa 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid #AAAAAA .5pt" 
    vAlign=top>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 0<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 1<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 2<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 3<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 4<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 5<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 6<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 7<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>The count is: 8<o:p 
      ></O:P></FONT></SPAN></P>
      <P class=MsoNormal 
      style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" 
      ><SPAN 
      style="FONT-SIZE: 7pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'" 
      ><FONT size=3>Good bye!<o:p 
      ></O:P></FONT></SPAN></P></TD></TR></TABLE></P>
<P class=MsoNormal 
style="BACKGROUND: white; MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto"><FONT color=#000000><FONT size=3><SPAN 
style="FONT-SIZE: 6.5pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">The block here, consisting of the</SPAN><SPAN>&nbsp;print</SPAN><SPAN 
style="FONT-SIZE: 6.5pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">&nbsp;</SPAN><SPAN 
style="FONT-SIZE: 6.5pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'">and increment statements, is executed repeatedly until 
count is no longer less than 9. With each iteration, the current value of the 
index count is displayed and then increased by 1.<o:p></O:P></SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><o:p><FONT face=Calibri color=#000000 size=3></FONT></O:P></P>
<P class=MsoNormal 
style="BACKGROUND: #f5f5ff; MARGIN: 0in 0in 10pt; LINE-HEIGHT: 12.65pt; mso-margin-bottom-alt: auto"></SPAN></I></B></SPAN></SPAN>&nbsp;</P></body>
</html>
